package com.santiao.fuel.ui.adapter

import android.app.Activity
import android.text.TextUtils
import android.util.Log
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.santiao.fuel.R
import com.santiao.fuel.bean.GasEquipBean
import com.santiao.fuel.bean.RYChargeListBean
import com.santiao.fuel.bean.SceienceItemData
import com.santiao.fuel.bean.UnitBean
import com.santiao.fuel.ui.adapter.base.BaseAdapter
import com.santiao.fuel.ui.adapter.base.BaseViewHolder
import org.w3c.dom.Text


/**
 * 煤气设备大全适配器
 */
class GasUnitSelectorAdapter(activity : Activity, id : Int, myData : MutableList<UnitBean>) : BaseAdapter<UnitBean>(activity, id, myData) {


    override fun bindView(holder: BaseViewHolder, data: UnitBean) {

        val cn_text = holder.itemView.findViewById<TextView>(R.id.cn_text)
        val zn_text = holder.itemView.findViewById<TextView>(R.id.zn_text)
        cn_text.setText(data.cn)
        zn_text.setText(data.zn)
    }

}
